﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FileDownLoadDemo
{
    public partial class fileUpLoadDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        #region 文件上传Demo
        /// <summary>
        /// 文件上传
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnFileUpLoad_Click(object sender, EventArgs e)
        {
            //if (selFileType.SelectedIndex == 0)
            //{
            //    lblMessage.Text = "请选择文件类别!";
            //    lblMessage.Visible = true;
            //    return;
            //}
            if (!upfile.HasFile)
            {
                lblMessage.Text = "没有文件可以上传!";
                lblMessage.Visible = true;
                return;
            }

        }
        #endregion


    }
}